The United States intelligence services have determined that foreign powers have hacked into the electoral systems of several states, and into some of the machines.
The regime derives legitimacy from the electoral system although that system is rigidly controlled to exclude candidates seen as an outright threat to dominance by the clerics.
Trump cannot do that because the electoral system is controlled mostly under a system regulated by the federal government, but is controlled by the states.